<div id="submenu">
    <?php
    $actionId = Yii::app()->controller->action->id;
    $this->menu = array( //In layout, we have set-up a placeholder for submenu by putting a widget CMenu loading items from $this->menu; Now we define its real items
        //Stock Formulas
        array(
            'label' => CHtml::tag(
                'div',
                array('class' => 'submenu-item'),
                'Stock Formula'
            ),
            'url'   => array('formula'),
            'active'=> $actionId == 'formula',
        ),

        //Stock Charts
        array(
            'label' => CHtml::tag(
                'div',
                array('class' => 'submenu-item'),
                'Stock Chart'
            ),
            'url'   => array('chart'),
            'active'=> $actionId == 'chart',
        ),
        
        array(
            'label' => CHtml::tag(
                'div',
                array('class' => 'submenu-item'),
                'Linear Regression Equation'
            ),
            'url'   => array('SLR'),
            'active'=> $actionId == 'SLR',
        ),
    );?>
</div><!-- submenu -->
